# -*- coding: utf-8 -*-
# Auther : 风雪
# Date : 2023/12/15 14:57
# File : tt.py

import time
import json
import requests

dic = {
    "f6-data-backendSESSIONID": "89491899-72a3-403a-b030-90f19d182652",
    "un": "17032216609201546586",
    "sensorsdata2015jssdkcross": "%7B%22distinct_id%22%3A%2218c438640194eb-017232fd42cab17-26031051-2073600-18c4386401a330%22%2C%22first_id%22%3A%22%22%2C%22props%22%3A%7B%22%24latest_traffic_source_type%22%3A%22%E7%9B%B4%E6%8E%A5%E6%B5%81%E9%87%8F%22%2C%22%24latest_search_keyword%22%3A%22%E6%9C%AA%E5%8F%96%E5%88%B0%E5%80%BC_%E7%9B%B4%E6%8E%A5%E6%89%93%E5%BC%80%22%2C%22%24latest_referrer%22%3A%22%22%7D%2C%22%24device_id%22%3A%2218c438640194eb-017232fd42cab17-26031051-2073600-18c4386401a330%22%7D"
}

url = 'http://127.0.0.1:8000/api/vin'
paramms = {
    "vin": "LHGTG1828M8060867"
}

data = {"f6-data-backendSESSIONID": "e23a3e7c-3f76-4dd9-80a7-4123854feca9", "un": "17032216609201546586",
        "sensorsdata2015jssdkcross": "%7B%22distinct_id%22%3A%2218c438640194eb-017232fd42cab17-26031051-2073600-18c4386401a330%22%2C%22first_id%22%3A%22%22%2C%22props%22%3A%7B%22%24latest_traffic_source_type%22%3A%22%E7%9B%B4%E6%8E%A5%E6%B5%81%E9%87%8F%22%2C%22%24latest_search_keyword%22%3A%22%E6%9C%AA%E5%8F%96%E5%88%B0%E5%80%BC_%E7%9B%B4%E6%8E%A5%E6%89%93%E5%BC%80%22%2C%22%24latest_referrer%22%3A%22%22%7D%2C%22%24device_id%22%3A%2218c438640194eb-017232fd42cab17-26031051-2073600-18c4386401a330%22%7D"}

resp = requests.post(url=url, json=data,params=paramms)
print(resp.text)
